<template>
  <JsAppView>
    <!-- Header -->
    <template #header>
      <div class="app-header">
        <div class="logo">LOGO</div>
        <div class="profile">👤 用户名</div>
      </div>
    </template>

    <!-- Sidebar -->
    <template #sidebar>
      <div class="app-sidebar">
        <ul>
          <li>🏠 首页</li>
          <li>👥 用户管理</li>
          <li>⚙️ 系统设置</li>
        </ul>
      </div>
    </template>

    <!-- Main Content -->
    <template #default>
      <RouterView />
    </template>
  </JsAppView>
</template>

<script setup lang="ts">
import JsAppView from '@/cmps/layout/appView/JsAppView.vue'
</script>

<style lang="scss" scoped>
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 60px;
  background-color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  font-weight: bold;
}

.logo {
  font-size: 18px;
  color: #333;
}

.profile {
  font-size: 14px;
  color: #666;
  cursor: pointer;
}

.app-sidebar {
  background-color: #f9f9f9;
  padding: 20px 10px;
  border-right: 1px solid #ddd;
}

.app-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.app-sidebar li {
  padding: 10px;
  margin-bottom: 8px;
  background-color: #e9ecef;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.app-sidebar li:hover {
  background-color: #dbe0e4;
}
</style>